home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 25 / Cream of the Crop 25.iso / bbs / fcfgw40s.zip / SELECTTY.CPP < prev    next >
C/C++ Source or Header  |  1996-04-18  |  1KB  |  61 lines

  1. // SelectType.cpp : implementation file
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "FileCFG.h"
  6. #include "SelectType.h"
  7.  
  8. #ifdef _DEBUG
  9. #define new DEBUG_NEW
  10. #undef THIS_FILE
  11. static char THIS_FILE[] = __FILE__;
  12. #endif
  13.  
  14. /////////////////////////////////////////////////////////////////////////////
  15. // CSelectType dialog
  16.  
  17.  
  18. CSelectType::CSelectType(CWnd* pParent /*=NULL*/)
  19.     : CDialog(CSelectType::IDD, pParent)
  20. {
  21.     //{{AFX_DATA_INIT(CSelectType)
  22.     m_CDROM = -1;
  23.     m_Free = -1;
  24.     m_Tops = -1;
  25.     m_Or = -1;
  26.     //}}AFX_DATA_INIT
  27. }
  28.  
  29.  
  30. void CSelectType::DoDataExchange(CDataExchange* pDX)
  31. {
  32.     CDialog::DoDataExchange(pDX);
  33.     //{{AFX_DATA_MAP(CSelectType)
  34.     DDX_Radio(pDX, IDC_RADIO_CDROM, m_CDROM);
  35.     DDX_Radio(pDX, IDC_RADIO_FREE, m_Free);
  36.     DDX_Radio(pDX, IDC_RADIO_TOPS, m_Tops);
  37.     DDX_Radio(pDX, IDC_RADIO_OR, m_Or);
  38.     //}}AFX_DATA_MAP
  39. }
  40.  
  41.  
  42. BEGIN_MESSAGE_MAP(CSelectType, CDialog)
  43.     //{{AFX_MSG_MAP(CSelectType)
  44.     //}}AFX_MSG_MAP
  45. END_MESSAGE_MAP()
  46.  
  47. /////////////////////////////////////////////////////////////////////////////
  48. // CSelectType message handlers
  49.  
  50. BOOL CSelectType::OnInitDialog() 
  51. {
  52.     CDialog::OnInitDialog();
  53.     
  54.     m_CDROM = 2;
  55.     m_Free  = 2;    
  56.     m_Tops  = 2;
  57.     m_Or    = 0;
  58.     UpdateData(FALSE);
  59.     return TRUE;
  60. }
  61.